// 订单相关的接口
import requests from "@/utils/request";

// 我的订单基础列表渲染接口  '/member/order'
/*
params: {
    orderState:0,
    page:1,
    pageSize:2
}
*/
export const getUserOrder = (params) => requests({
    url: '/order/'+JSON.parse(window.sessionStorage.getItem("user")).id+"/"+params.cancel,
    method: 'get',
    // params
})
export const Audit = (params) => requests({
    url: '/order/Audit',
    method: 'post',
    data: params
})
export const cancel = (params) => requests({
    url: '/order/cancel',
    method: 'post',
    data: params
})
